﻿
<%-- _lcid="1033" _version="12.0.3208" _dal="1" --%>
<%-- _LocalBinding --%>
<%@ Assembly Name="EvePoint.UI,Version=1.0.0.0,Language=Neutral,PublicKeyToken=6b3576aafa65be53" %>
<%@ Page Language="C#" EnableSessionState="true" ValidateRequest="False" Inherits="EvePoint.UI.ViewportSettings"
    MasterPageFile="~/_layouts/application.master"  %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>    
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<script language="JavaScript">
    function _spBodyOnLoad()
    {
        try
        {
            window.focus();
        }
        catch(e)
        {
        }
    }
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal ID="Literal1" runat="server" Text="Customize Viewport Settings" />

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <%
        string strPTS = "Mobile Safari Viewport Settings";
        SPHttpUtility.HtmlEncode(strPTS, Response.Output);
    %>
      <asp:HyperLink ID="hlReturn" runat="server" />

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/images/blank.gif" width="1" height="1" alt="" />
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <%
        string strPD = "Use this page to set the default viewport settings for this SharePoint web.";
        SPHttpUtility.HtmlEncode(strPD, Response.Output);
    %>
    
      
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Table CellSpacing="0" CellPadding="0" BorderWidth="0" CssClass="ms-propertysheet">
    
        <wssuc:InputFormSection Title="Mobile Safari Viewport Settings" Description="Specify how your web displays on iPhone/iPod devices."  runat="server">
        
       
              
      
            <template_inputformcontrols>
            
                <wssuc:InputFormControl LabelText="Enter display values:" runat="server">
                    <Template_Control>
                        <table border="0" cellspacing="0" cellpadding="0" width="500">
                        
                        
                        <tr>
                            <td class="ms-authoringcontrols">
                            <asp:ValidationSummary ID="ViewportValidationSummary" runat="server" ShowSummary="true" ShowMessageBox="false" DisplayMode="List" />
                            </td>
                        
                        </tr>
                        
                         <tr>
                                <td class="ms-authoringcontrols">
                                 Disable Resize Gestures? <asp:RadioButtonList ID="UserScalableRBL" RepeatLayout="Flow" RepeatDirection="Horizontal" runat="server" ><asp:ListItem Text="Yes" Value="0" /><asp:ListItem Text="No" Value="1" /></asp:RadioButtonList>
                                </td>
                            </tr>
                        
                         <tr>
                                <td class="ms-authoringcontrols">
                                 Initial Scale (0> to 10):<asp:TextBox ID="InitialScaleTxtBox" ToolTip="Enter the initial Page Scale" runat="server" Width="75" MaxLength="5" />
                                 <asp:RangeValidator  ID="InitialScaleRangeValidator" runat="server" Type="Double" ControlToValidate="InitialScaleTxtBox" ErrorMessage="Please enter an Initial Scale using decimals greater than 0 and less than or equal to 10." Display="None" EnableClientScript="true"  /> 
                                 <asp:CompareValidator ID="InitialCompareLTValidator" runat="server" Type="Double" ControlToValidate="InitialScaleTxtBox" ControlToCompare="MinimumScaleTxtBox" Operator="GreaterThanEqual" ErrorMessage="Please enter an Initial Scale greater than the Minimum Scale that has been entered." Display="None" EnableClientScript="true"/>
                                 <asp:CompareValidator ID="InitialCompareGTCompareValidator" runat="server" Type="Double" ControlToValidate="InitialScaleTxtBox" ControlToCompare="MaximumScaleTxtBox" Operator="LessThanEqual" ErrorMessage="Please enter an Initial Scale less than or equal to the Maximum Scale that has been entered." Display="None" EnableClientScript="true" />
                                 </td>
                            </tr>
                        
                          <tr>
                                <td class="ms-authoringcontrols">
                                 Minimum Scale (0> to 10):<asp:TextBox ID="MinimumScaleTxtBox" ToolTip="Enter the minimum Page Scale" runat="server" Width="75" MaxLength="5" />
                                 <asp:RangeValidator  ID="MinScaleRangeValidator" Type="Double" ControlToValidate="MinimumScaleTxtBox" runat="server" ErrorMessage="Please enter an Minimum Scale using decimals greater than 0 and less than or equal to 10." Display="None" EnableClientScript="true" /> 
                                 </td>
                            </tr>
                        
                         <tr>
                                <td class="ms-authoringcontrols">
                                 Maximum Scale (0> to 10):<asp:TextBox ID="MaximumScaleTxtBox" ToolTip="Enter the maximum Page Scale" runat="server" Width="75" MaxLength="5"  />
                                 <asp:RangeValidator  ID="MaxScaleRangeValidator" Type="Double" ControlToValidate="MaximumScaleTxtBox" runat="server" ErrorMessage="Please enter an Maximum Scale using decimals greater than 0 and less than or equal to 10." Display="None"  /> 
                                  <asp:CompareValidator ID="MaxMinCompareValidator" runat="server" Type="Double" ControlToValidate="MaximumScaleTxtBox" ControlToCompare="MinimumScaleTxtBox" Operator="GreaterThanEqual" ErrorMessage="Please enter an Maximum Scale less greater than or equal to the Minimum Scale that has been entered." Display="None" EnableClientScript="true" />
                                 </td>
                            </tr>
                        
                           
                            <tr>
                                <td class="ms-authoringcontrols">
                                  Page Width: <asp:TextBox ID="WidthTxtBox" ToolTip="Enter ideal page width for the browser to scale to." runat="server" Width="90" MaxLength="5" />
                                  <asp:RangeValidator  ID="WidthRangeValidator" Type="Integer" ControlToValidate="WidthTxtBox" runat="server" Display="None" EnableClientScript="true" /> 
                                </td>
                            </tr>
                            <tr>
                                <td class="ms-authoringcontrols">
                                  Page Height: <asp:TextBox ID="HeightTxtBox" ToolTip="Enter ideal page height for the browser to scale to." runat="server" Width="90" MaxLength="5" />
                                   <asp:RangeValidator  ID="HeightRangeValidator" Type="Integer" ControlToValidate="HeightTxtBox" runat="server" Display="None" EnableClientScript="true" /> 
                                </td>
                            </tr>
                           
                           <tr>
                                <td class="ms-authoringcontrols">
                                 Use Device-Height and Device-Width? (Native-style iPhone web applications only)<asp:RadioButtonList ID="UseDeviceSizingRBL" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal" ><asp:ListItem Text="Yes" Value="1" /><asp:ListItem Text="No" Value="0" /></asp:RadioButtonList>
                                </td>
                            </tr>
                             
                              
                        </table>
                    </Template_Control>
                </wssuc:InputFormControl>
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        
        
        <wssuc:ButtonSection runat="server">
            <template_buttons>
                <asp:PlaceHolder runat="server">
                   <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="OKBtn_Click"  CausesValidation="true"  Text="OK" id="OKBtn"  />
                </asp:PlaceHolder>
            </template_buttons>
        </wssuc:ButtonSection>
    </asp:Table>
    
    
</asp:Content>
